package com.fzy.designpattern.builder;

public class Dirctor {

    public static Computer getCompute(ComputerBuilder builder){

        Computer computer = new Computer();
        computer.setKeyboard(builder.buildKeyboard());
        computer.setMonitor(builder.buildMonitor());
        computer.setMouse(builder.buildMouse());

        return computer;
    }
}
